# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Alexander Willing <willing.alexander@googlemail.com>
pkgname=enet
pkgver=1.3.18
pkgrel=0
pkgdesc="Reliable UDP networking library"
options="!check" # No testsuite
url="http://enet.bespin.org"
arch="all"
license="MIT"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/lsalzman/enet/archive/v$pkgver.tar.gz"
makedepends="automake autoconf libtool"

build() {
	autoreconf --install --force
	./configure --prefix=/usr --disable-static
	make
}

package() {
	make DESTDIR="$pkgdir/" install
}

sha512sums="
a0d2fa8c957704dd49e00a726284ac5ca034b50b00d2b20a94fa1bbfbb80841467834bfdc84aa0ed0d6aab894608fd6c86c3b94eee46343f0e6d9c22e391dbf9  enet-1.3.18.tar.gz
"
